﻿namespace BM.Tools.WebControls.MForm.Controls.DefaultTemplates
{
    using System.Web.UI;

    using BM.Tools.WebControls.MForm.Controls.ValueHandlers;

    /// <summary>
    /// An <see cref="ITemplate" /> that creates a <see cref="LabelValueHandler" /> in the container control.
    /// </summary>
    public class LabelValueHandlerTemplate : ITemplate
    {
        /// <summary>
        /// Instantiates a <see cref="LabelValueHandler" /> in the container control.
        /// </summary>
        /// <param name="container">
        /// The container.
        /// </param>
        public void InstantiateIn(Control container)
        {
            container.Controls.Add(new LabelValueHandler());
        }
    }
}